import Vue from 'vue'
import VueRouter from 'vue-router'
import MyGoodsList from '../views/MyGoodsList.vue'
import MyGoodsSearch from '../views/MyGoodsSearch.vue'
import MyUserInfo from '../views/MyUserInfo.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'/myGoodsList'
  },
  {
    path:'/myGoodsList',
    name:'MyGoodsList',
    component: MyGoodsList
   },
   {
    path:'/myGoodsSearch',
    name:'MyGoodsSearch',
    component: MyGoodsSearch
   },
   {
    path:'/myUserInfo',
    name:'MyUserInfo',
    component: MyUserInfo
   },
]

const router = new VueRouter({
  routes
})

export default router
